import request from '@/utils/request'

// 查询项目人员列表
export function listProjectMember(query) {
  return request({
    url: '/pile/projectMember/list',
    method: 'get',
    params: query
  })
}

// 查询项目人员所有列表
export function listAllProjectMember(query) {
  return request({
    url: '/pile/projectMember/listAll',
    method: 'get',
    params: query
  })
}

// 查询项目人员详细
export function getProjectMember(id) {
  return request({
    url: '/pile/projectMember/getInfo/' + id,
    method: 'get'
  })
}

// 新增项目人员
export function addProjectMember(data) {
  return request({
    url: '/pile/projectMember/add',
    method: 'post',
    data: data
  })
}

// 修改项目人员
export function updateProjectMember(data) {
  return request({
    url: '/pile/projectMember/edit',
    method: 'post',
    data: data
  })
}

// 删除项目人员
export function delProjectMember(id) {
  return request({
    url: '/pile/projectMember/remove/' + id,
    method: 'get'
  })
}
